package com.hx.vending.bean.entity;

import com.hx.vending.bean.Equipment;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * Created by Administrator on 2018/12/13.
 */
public class EquipmentVo implements Comparable<EquipmentVo> {
    private String equipmentId;

    private Integer equipmentNumber;

    //设备线上投币总数
    private Double onlineOrderAmount;
    //设备线下投币总数
    private Double underLineAmount;
    //礼品消耗数
    private BigDecimal goodsAmount;
    //礼品消耗总金额
    private Double goodsConsumeAmount;
    //合计
    private Double amount;

    public String getEquipmentId() {
        return equipmentId;
    }

    public void setEquipmentId(String equipmentId) {
        this.equipmentId = equipmentId;
    }

    public Integer getEquipmentNumber() {
        return equipmentNumber;
    }

    public void setEquipmentNumber(Integer equipmentNumber) {
        this.equipmentNumber = equipmentNumber;
    }

    public Double getOnlineOrderAmount() {
        return onlineOrderAmount;
    }

    public void setOnlineOrderAmount(Double onlineOrderAmount) {
        this.onlineOrderAmount = onlineOrderAmount;
    }

    public Double getUnderLineAmount() {
        return underLineAmount;
    }

    public void setUnderLineAmount(Double underLineAmount) {
        this.underLineAmount = underLineAmount;
    }

    public BigDecimal getGoodsAmount() {
        return goodsAmount;
    }

    public void setGoodsAmount(BigDecimal goodsAmount) {
        this.goodsAmount = goodsAmount;
    }

    public Double getGoodsConsumeAmount() {
        return goodsConsumeAmount;
    }

    public void setGoodsConsumeAmount(Double goodsConsumeAmount) {
        this.goodsConsumeAmount = goodsConsumeAmount;
    }

    public Double getAmount() {
        return amount;
    }

    public void setAmount(Double amount) {
        this.amount = amount;
    }

    @Override
    public int compareTo(EquipmentVo o) {
        return this.getAmount() .compareTo(o.getAmount());
    }
}
